package cn.yto.print.config;

import cn.yto.print.system.SpringContextHolder;
import javax.websocket.server.ServerEndpointConfig;

public class EndpointConfigurator extends ServerEndpointConfig.Configurator {

    @Override
    public <T> T getEndpointInstance(Class<T> endpointClass) {
        return SpringContextHolder.getBean(endpointClass);
    }

}
